<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        if (true) {
            let a = 10
        }
        //用let定义的属性在函数中不会被访问
        // console.log(a);
        //let 没有变量提升
        // console.log(b)
        // let b = 10;
        // var b = 10
        //死区的暂时性
        let bsd = 10
        
    </script>
</body>

</html>